import pandas as pd
data = pd.DataFrame([['可乐', 15, 3, 45], ['雪碧', 6, 5, 30], ['橙汁', 10, 4, 40], ['矿泉水', 20, 2, 40]], columns=['产品名称', '销售数量', '销售单价', '销售额'])
data.to_csv('F:\\python\\第6章\\产品表.csv', sep='*', header=['产品名称', '销售数量', '销售单价', '销售额'], index=False)
